.snap-points-demo {
  min-height: 100vh;
  background: #f5f5f5;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.demo-header {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.demo-header h1 {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 20px 0;
  color: #000;
}

.demo-header p {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.5;
}

.demo-content {
  max-width: 720px;
  margin: 0 auto;
}

.open-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 40px;
}

.open-button:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.demo-description {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
}

.demo-description h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #000;
}

.demo-description p {
  line-height: 1.6;
  font-size: 16px;
  color: #666;
  margin-bottom: 16px;
}

/* Sheet 内容样式 */
.sheet-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.control-button {
  background: #000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 200px;
}

.control-button:hover {
  background: #333;
  transform: translateY(-1px);
}

.control-button:active {
  transform: translateY(0);
}

.snap-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: auto;
}

.snap-info h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.snap-info p {
  margin: 8px 0;
  font-size: 14px;
}

.snap-info strong {
  font-weight: 600;
}

.instructions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.instructions h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.instructions ul {
  margin: 0;
  padding-left: 20px;
}

.instructions li {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* 🎯 新增：配置面板样式 */
.config-panel {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
}

.config-panel h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.config-group {
  margin-bottom: 24px;
}

.config-group:last-of-type {
  margin-bottom: 20px;
}

.config-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #555;
}

.width-controls,
.position-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.config-btn {
  padding: 8px 16px;
  border: 2px solid #e5e5e5;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.config-btn:hover {
  border-color: #007bff;
  color: #007bff;
  background: #f0f8ff;
}

.config-btn.active {
  border-color: #007bff;
  background: #007bff;
  color: white;
}

.config-display {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #007bff;
}

.config-display p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

.config-display p:first-child {
  margin-top: 0;
  font-weight: 600;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .snap-points-demo {
    padding: 16px;
  }
  
  .demo-header h1 {
    font-size: 32px;
  }
  
  .demo-header p {
    font-size: 18px;
  }
  
  .control-button {
    min-width: 180px;
    font-size: 13px;
  }
  
  .sheet-content {
    padding: 12px;
  }

  /* 配置面板响应式 */
  .config-panel {
    padding: 16px;
  }

  .width-controls,
  .position-controls {
    gap: 6px;
  }

  .config-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 🎯 自定义位置样式 - 使用更高优先级覆盖默认的 modal-sheet--bottom 样式 */
.modal-sheet--bottom.custom-position-left,
.modal-sheet.modal-sheet--bottom.custom-position-left {
  left: 20px !important;
  right: auto !important;
  transform: none !important;
}

.modal-sheet--bottom.custom-position-left-center,
.modal-sheet.modal-sheet--bottom.custom-position-left-center {
  left: 25% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.modal-sheet--bottom.custom-position-center,
.modal-sheet.modal-sheet--bottom.custom-position-center {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.modal-sheet--bottom.custom-position-right-center,
.modal-sheet.modal-sheet--bottom.custom-position-right-center {
  left: 75% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.modal-sheet--bottom.custom-position-right,
.modal-sheet.modal-sheet--bottom.custom-position-right {
  left: auto !important;
  right: 20px !important;
  transform: none !important;
}
